import { Column, Entity, ObjectID, ObjectIdColumn } from "typeorm";

@Entity()
export class Messages {
  @ObjectIdColumn()
  id: ObjectID;

  @Column()
  uid: string;

  @Column()
  fid: string;

  @Column()
  urole: number;

  @Column()
  content: string;

  @Column()
  time: number;

  @Column()
  state: boolean;
}